<?php


namespace app\api\model;

use think\Model;

/**
 * 轮播图
 * Class BannerModel
 * @package app\api\model
 */
class BannerModel extends Model
{

    /**
     * 设置表名
     * @var string
     */
    protected $table = 'te_banner';

    /**
     *
     * 轮播图列表
     */
    public static function bannerList(){

        return self::where(['status'=>1,'is_deleted'=>0])
            ->field('id,img,is_jump,type')
            ->order('id desc')
            ->select();
    }
}